package com.xxx.car.mapper;

import com.xxx.car.entity.TbUserWallet;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

public interface TbUserWalletMapper {
    int deleteByPrimaryKey(Integer userId);

    int insert(TbUserWallet record);

    int insertSelective(TbUserWallet record);

    TbUserWallet selectByPrimaryKey(Integer userId);

    int updateByPrimaryKeySelective(TbUserWallet record);

    int updateByPrimaryKey(TbUserWallet record);

    TbUserWallet selectByPrimaryKeyForUpdate(Integer userId);

    void changeAmt(@Param("userId") Integer userId, @Param("chargeAmt") long chargeAmt, @Param("redPackageAmt") BigDecimal redPackageAmt, @Param("giveAmt") long giveAmt, @Param("bonusPoints") long bonusPoints);
}